﻿using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using MeetingAssistant.Component.Tools;

namespace MeetingAssistant.Domain.Model.Member
{
    public class Company : EntityBase<int>
    {
        public Company()
        {
            this.Users = new List<User>();
        }

        #region 字段名

        [Required]
        [Description("公司名")]
        [StringLength(20)]
        public string CompanyName { get; set; }

        [Required]
        [Description("公司地址")]
        [StringLength(200)]
        public string CompanyAddress { get; set; }

        [Required]
        [Description("公司信用代码")]
        [StringLength(18)]
        public string Code { get; set; }

        [Required]
        [Description("是否激活")]
        public bool Enabled { get; set; }

        #endregion

        public virtual ICollection<User> Users { get; set; }

    }
}
